/**
 * Copyright (c) 2009-2012 XTEAM
 * All rights reserved.
 */
/**
 * File：FileSorter.java
 * History:
 *         2012-5-24: Initially created, Chrise.
 */
package com.xteam.ecsystem.base;

import java.io.File;
import java.io.Serializable;
import java.util.Comparator;

/**
 * 文件排序器。
 * @author Chrise
 */
public class FileSorter implements Comparator<File>, Serializable {
	
	private static final long serialVersionUID = -3835865593014392915L;
	
	/**
	 * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
	 */
	public int compare(File first, File second) {
		return first.getName().compareToIgnoreCase(second.getName());
	}
}
